<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <title>空白页</title>
    <script type="text/javascript" src="${ctx}/appjs/tenant/openService/openService.js"></script>
    <style>
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>云产品</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <c:if test="${tenantOrder.status==1 }">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <div class="columns pull-left">
                                <%--<h5 class="font-bold">刷卡充电</h5>--%>
                        </div>
                        <div class="ibox-tools">
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal m-t layui-form" id="frmOpenService">
                            <input type="hidden" name="tenantCode" id="tenantCode" value="${tenantOpenService.tenantCode}">
                            <input type="hidden" name="serviceTypeCode" id="serviceTypeCode" value="${tenantOpenService.serviceTypeCode}">
                            <div class="form-group row">
                                <label class="col-sm-3 col-form-label text-right">是否启用该功能：</label>
                                <div class="col-sm-2">
                                    <input type="radio" class="form-control" checked name="status"
                                           lay-filter="status" title="启用" value="0"
                                           <c:if test="${tenantOpenService.status eq '0'}">checked</c:if>  >
                                </div>
                                <div class="col-sm-2">
                                    <input type="radio" class="form-control" name="status" lay-filter="status"
                                           title="停用" value="1"
                                           <c:if test="${tenantOpenService.status eq '1'}">checked</c:if>   >
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-3 col-form-label text-right">功能说明:</label>
                                <div class="col-sm-8">
                                    <textarea style="width: 50%;height: 20%" READONLY>${tenantOrder.remark}</textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-3 col-sm-offset-8 text-right">
                                    <button type="submit" class="btn btn-primary">保存设置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                    <%--<form class="form-horizontal m-t layui-form" id="frmOrg">--%>
                    <%--<div class="form-group row">--%>
                    <%--<label class="col-sm-3 col-form-label text-right">是否启用超级会员功能: </label>--%>
                    <%--<div class="col-sm-8">--%>
                    <%--<input type="checkbox" name="sendRegularly" lay-skin="switch" lay-text="开启|关闭"--%>
                    <%--lay-filter="sendRegularly">--%>
                    <%--<div class="layui-unselect layui-form-switch" lay-skin="_switch">--%>
                    <%--<em>OFF</em>--%>
                    <%--<i></i>--%>
                    <%--</div>--%>
                    <%--</div>--%>
                    <%--</div>--%>
                    <%--</form>--%>
            </div>
        </div>
        <%--<img src="${ctx}/statics/img/applyReject.png" alt="">--%>
        <%--<p class="rejectSection">功能已经开通 !</p>--%>
    </c:if>
    <c:if test="${tenantOrder.status!=1 }">
        <div class="middle-box text-center animated fadeInRightBig">
            <div class="ibox-content text-center">
                <div class="h1 m-t-xs text-navy">
                    <c:if test="${empty tenantOrder}">
                        <img src="${ctx}/statics/img/applyStatus.png" alt="">
                        <a class="btn btn-success btn-lg openBtn" href="#"
                           onclick="openService.open('${code}')">申请开通功能</a>
                    </c:if>
                    <c:if test="${tenantOrder.status==0 }">
                        <img src="${ctx}/statics/img/applyIng.png" alt="">
                        <p class="rejectSection">申请功能提交成功，正在审核中...</p>
                    </c:if>
                        <%--<h2 class="font-bold">陆续上架中。。。。。。</h2>--%>
                </div>
            </div>

        </div>
    </c:if>

</div>
</body>
</html>
<script>
    updateOpenService.init();
    layui.use(['form', 'jquery', 'tree', 'laydate', 'util'], function () {

    })
</script>